// 文件路径: com.huaxin.device.service.DeviceReadingCircuitBreakerService.java
package com.huaxin.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.device.dto.ResponseResult;
import com.huaxin.device.dto.request.DeviceReadingCircuitBreakerCreateReqDTO;
import com.huaxin.device.dto.request.DeviceReadingCircuitBreakerPageListReqDTO;
import com.huaxin.device.models.DeviceReadingCircuitBreaker;

public interface DeviceReadingCircuitBreakerService extends IService<DeviceReadingCircuitBreaker> {

    /**
     * 创建一条断路器用电数据
     */
    ResponseResult<DeviceReadingCircuitBreaker> create(DeviceReadingCircuitBreakerCreateReqDTO in);

    /**
     * 根据设备ID获取最新的用电数据
     */
    DeviceReadingCircuitBreaker getLatestByDeviceId(String deviceId);

    /**
     * 分页查询断路器用电数据
     */
    ResponseResult<IPage<DeviceReadingCircuitBreaker>> pageQuery(DeviceReadingCircuitBreakerPageListReqDTO in);
}